package com.zy.cat.entity.app;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;

/**
 * 
 * @info 9趣猫用户留存登录信息
 * @author Link
 * @date 2019-10-30 08:56
 */
@Data
@RequiredArgsConstructor
@ApiModel("9趣猫用户留存登录信息")
@Document
public class CatDevUserUV {
	
	@Id
	@ApiModelProperty(value = "id[9趣猫用户留存信息]", example = "")
    private String id="";
	
	@ApiModelProperty(value = "imei", example = "")
    private String imei="";
	
	@ApiModelProperty(value = "(0.安卓、1.IOS)", example = "0")
    private int mtype;
	
	@ApiModelProperty(value = "渠道ID", example = "0")
    private String cid;
	
	@ApiModelProperty(value = "APP版本", example = "0")
    private String vs;
	 
	@ApiModelProperty(value = "第一次登录日期", example = "2019-02-22")
	private String ctime;
	
	@ApiModelProperty(value = "本次登录日期", example = "2019-02-22")
	private String ltime;

	public CatDevUserUV(String imei, int mtype, String cid, String vs, String ctime, String ltime) {
		super();
		this.id=imei+"_"+ltime;
		this.imei = imei;
		this.mtype = mtype;
		this.cid = cid;
		this.vs = vs;
		this.ctime = ctime;
		this.ltime = ltime;
	}
	
	
	
}
